﻿namespace SmartPlant.Model.Biz
{
    /// <summary>
    ///
    ///</summary>
    public class UserGroup
    {
        /// <summary>
        ///
        ///</summary>
        public decimal GroupId { get; set; } = -1; //避免被默认的管理员组id=0 给干扰

        /// <summary>
        ///
        ///</summary>
        public decimal ProjId { get; set; }

        /// <summary>
        ///
        ///</summary>
        public decimal SiteId { get; set; }

        /// <summary>
        ///
        ///</summary>
        public decimal ChgNum { get; set; }

        /// <summary>
        ///
        ///</summary>
        public string ChgStatus { get; set; }

        /// <summary>
        ///
        ///</summary>
        public string UserName { get; set; }

        /// <summary>
        ///
        ///</summary>
        public DateTime? ChgDate { get; set; }

        /// <summary>
        ///
        ///</summary>
        public string UserGroupName { get; set; }

        /// <summary>
        ///
        ///</summary>
        public decimal? GroupLevel { get; set; }

        /// <summary>
        ///
        ///</summary>
        public string GroupDesc { get; set; }

        /// <summary>
        ///
        ///</summary>
        public string GroupNote { get; set; }

        /// <summary>
        ///
        ///</summary>
        public string DefGrpFlg { get; set; }

        /// <summary>
        ///
        ///</summary>
        public string NtGroupName { get; set; }
    }

    public class UserGroupModel : MetaDataEntity
    {
        /// <summary>
        ///
        ///</summary>
        public decimal GroupId { get; set; }

        /// <summary>
        ///
        ///</summary>
        public string UserGroupName { get; set; }

        private bool _isCheck;
        public bool IsCheck
        {
            get
            {
                return _isCheck;
            }
            set
            {
                _isCheck = value;
                OnPropertyChanged(nameof(IsCheck));
            }
        }

    }
}
